@import "../../common/styles/scss/index.scss";
.day_memo {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  margin-top: 20px;
  padding: 0 10px;
  height: 80px;
  background-color: $white;
  border-radius: 10px;
  box-shadow: $box_shadow;
  overflow: auto;

  .item {
    display: flex;
    min-height: 80px;
    max-height: 80px;
    border-bottom: $border_lightBlack;
    // 时间
    .time {
      position: relative;
      display: flex;
      flex-direction: column;
      justify-content: center;
      padding-right: 10px;
      .start,
      .end {
        font-weight: bold;
      }
      .start {
        padding-bottom: 5px;
      }
      // 分割线
      &::after {
        content: "";
        position: absolute;
        top: 10%;
        right: 0;
        width: 1px;
        height: 80%;
        background: $light_gray;
      }
    }
    // 内容
    .content {
      display: flex;
      align-items: center;
      .checkbox {
        margin: 0 10px;
      }
      .text {
        font-weight: bold;
        &::before {
          content: "";
          display: block;
        }
      }
    }
  }

  // 完成样式
  .finished {
    color: $lighter_gray !important;
    font-style: italic;
    .time {
      &::after {
        background: $lighter_gray;
      }
    }
    .content {
      .text {
        text-decoration: line-through;
      }
    }
  }
  // 复选框初始化样式
  input[type="checkbox"] {
    width: 16px;
    height: 16px;
    background-color: $white;
    -webkit-appearance: none;
    border: 1px solid $theme_color;
    border-radius: 2px;
    outline: none;
  }

  // 复选框选中样式
  input[type="checkbox"]:checked::before {
    display: block;
    content: "\2714";
    text-align: center;
    font-size: 16px;
    color: $theme_color;
  }
}
